// 1. 定义一些路由
// 每个路由都需要映射到一个组件。
import Index from '../pages/Index.vue';
import TeamPage from '../pages/TeamPage.vue';
import UserPage from "../pages/UserPage.vue";
import UserTeamJoinPage from "../pages/UserTeamJoinPage.vue";
import UserTeamCreatePage from "../pages/UserTeamCreatePage.vue";
import UserUpdatePage from "../pages/UserInfoPage.vue";
import SearchPage from "../pages/SearchSignPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import TeamUpdatePage from "../pages/TeamUpdatePage.vue";
import SearchSignPage from "../pages/SearchSignPage.vue";
import SearchSignTotalPage from "../pages/SearchSignTotalPage.vue";
import SearchSignSettingPage from "../pages/SearchSignSettingPage.vue";
import UserInfoPage from "../pages/UserInfoPage.vue";
import DashboardPage from "../pages/DashboardPage.vue";
import UserAddPage from "../pages/UserAddPage.vue";
import UserList from "../pages/UseList.vue";
import UserInfoAdminPage from "../pages/UserInfoAdminPage.vue";
import SearchSignAdminPage from "../pages/SearchSignAdminPage.vue";
import DeptInfoAdminPage from "../pages/DeptInfoAdminPage.vue";
import DeptEditAdminPage from "../pages/DeptEditAdminPage.vue";

const routes = [
    {path: '/',title:"主页", component: Index},
    {path: '/team', component: TeamPage},
    {path: '/team/add', component: TeamAddPage},
    {path: '/team/update', component: TeamUpdatePage},
    {path: '/user', component: UserPage},
    // {path: '/search', component: SearchPage},
    {path: '/searchSign',title:"签到查询", component:SearchSignPage},
    {path: '/searchSign/total',title:"个人统计",component:SearchSignTotalPage},
    {path: '/searchSign/setting',title:"个人设置",component:SearchSignSettingPage},
    {path: '/user/list', component: SearchResultPage},
    {path: '/user/edit', component: UserEditPage},
    {path: '/user/login',title:"用户登录" ,component: UserLoginPage},
    {path: '/userInfo',title:"用户信息", component: UserInfoPage},
    {path: '/user/update', component: UserUpdatePage},
    {path: '/user/team/join', component: UserTeamJoinPage},
    {path: '/user/team/create', component: UserTeamCreatePage},
    {path: '/admin/dashboard',title:"后台管理",component: DashboardPage},
    {path: '/admin/user/add',title:"管理页->新增用户", component: UserAddPage},
    {path: '/admin/user/list',title:"管理页->用户信息查看",component: UserList},//todo 修改下页面
    {path: '/admin/userInfo',title:"管理页->用户信息查看",component: UserInfoAdminPage},
    {path: '/admin/searchSign',component: SearchSignAdminPage},
    {path: '/admin/deptInfo',title:"管理页->公司信息",component: DeptInfoAdminPage},
    {path: '/admin/dept/edit',title:"管理页->公司编辑",component: DeptEditAdminPage}
]

export default routes;
